using System;
using TestMonkey.Models;

namespace TestMonkey.Templates
{
    public class Comparable : TemplateProcessor
    {
        protected override bool ShouldRun(ModelRoot model)
        {
            if (model == null)
                throw new ArgumentNullException("model", "model is null.");

            return model.Type.HasConstructors() && !model.Type.IsEnum && model.Class.HasInteface("IComparable");
        }

    }

}
